<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <style>
        body {
            background-color: #262626
        }

        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        ul {
            width: 807px;
            height: 40px;
            border: 1px solid #000;
            margin: 100px auto;
            overflow: hidden;
            background-color: #000;
        }

        ul li {
            width: 100px;
            height: 40px;
            float: left;
            border-right: 1px solid #292929;
            position: relative;
            text-align: center;
            line-height: 40px;
            color: rgba(173, 173, 173, 1.00);
        }

        ul li:last-child {
            border-right: none;
        }

        ul li ins {
            position: absolute;
            left: 0;
            top: 40px;
            width: 100%;
            height: 100%;
            background-color: red;
            transition: all 500ms;
        }

        ul li:hover ins {
            top: 25px;
        }
    </style>
    <script src="js/jquery-3.1.1.min.js"></script>

</head>
<body>
<ul>
    <li>音乐
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
    <li>导航
        <ins></ins>
    </li>
</ul>
<div class="musicWrap">
    <audio src="music/a1.mp3"></audio>
    <audio src="music/a2.mp3"></audio>
    <audio src="music/a3.mp3"></audio>
    <audio src="music/a4.mp3"></audio>
    <audio src="music/a5.mp3"></audio>
    <audio src="music/a6.mp3"></audio>
    <audio src="music/a7.mp3"></audio>
    <audio src="music/a8.mp3"></audio>
</div>

<script type="text/javascript">
    $(function () {

        //颜色
        var colorArr = ['red', 'green', 'blue', 'yellow', 'pink', 'orange', 'purple', 'yellowgreen'];
        $('ul li ins').each(function (index, el) {
            $(this).css('background-color', colorArr[index]);
        });

        //声音
        $('ul li').mouseenter(function () {
            var index = $(this).index(), $audio = $('audio');
            $audio.get(index).load();
            $audio.get(index).play();
        });

    })
</script>
</body>
</html>